package org.crazyit.cloud;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

// 调用服务的ID
@FeignClient("spring-feign-provider")
public interface HelloClient {
	
	@RequestMapping(value="/hello/{name}",method=RequestMethod.GET)
	String hello(@PathVariable("name") String name);
	
	@RequestMapping(value="/call/{id}",method=RequestMethod.GET)
	Police getPolice(@PathVariable("id") Integer id);
	
}
